package com.levi.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.levi.form.ShippingForm;
import com.levi.pojo.Shipping;
import com.levi.vo.ResponseVo;

import java.util.Map;

/**
 * @author shentong
 * @since 2022/4/4 6:22 PM
 */
public interface ShippingService extends IService<Shipping> {

    ResponseVo<Map<String,Integer>> add(Integer uid, ShippingForm form);

    ResponseVo delete(Integer uid,Integer shippingId);

    ResponseVo update(Integer uid, Integer shippingId, ShippingForm form);

    ResponseVo<PageInfo<Shipping>> list(Integer uid, Integer pageNum, Integer pageSize);
}
